//package com.example.tests;

import com.thoughtworks.selenium.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.util.regex.Pattern;

public class DealerPROD_DealerLoginPage_TextVerify extends SeleneseTestCase {
	@Before
	public void setUp() throws Exception {
		selenium = new DefaultSelenium("localhost", 4444, "*chrome", "http://www.gfwfn.com/DealerLogin.php");
		selenium.start();
	}

	@Test
	public void testUntitled() throws Exception {
		selenium.open("/DealerLogin.php");
		verifyTrue(selenium.isElementPresent("id=header"));
		verifyTrue(selenium.isElementPresent("css=img[alt=\"Check out the all-new 2013 Fusion\"]"));
		verifyTrue(selenium.isElementPresent("id=header"));
		verifyTrue(selenium.isElementPresent("id=header"));
		verifyTrue(selenium.isElementPresent("id=car1c"));
		verifyTrue(selenium.isElementPresent("css=h2"));
		verifyTrue(selenium.isTextPresent("EVENT MANAGER LOGIN"));
		verifyTrue(selenium.isTextPresent("exact:ID:"));
		verifyTrue(selenium.isElementPresent("css=label"));
		verifyTrue(selenium.isElementPresent("id=txtUsername"));
		verifyTrue(selenium.isElementPresent("//div[@id='car1c']/label[2]"));
		verifyTrue(selenium.isElementPresent("id=txtPassword"));
		verifyTrue(selenium.isTextPresent("exact:Password:"));
		verifyTrue(selenium.isElementPresent("name=submit"));
		verifyTrue(selenium.isTextPresent("exact:Have Questions? Call 1-800-757-5754 \nAmerican Idol ®/© 19 TV Ltd. and FremantleMedia North America. 2013 All Rights Reserved. www.americanidol.com\nCharitable donations are the sole responsibility of Ford, not American Idol® or related parties."));
		verifyTrue(selenium.isElementPresent("css=span.aiDisclaimer"));
		verifyTrue(selenium.isElementPresent("css=p.alignLeft"));
		verifyTrue(selenium.isTextPresent("American Idol ®/© 19 TV Ltd. and FremantleMedia North America. 2013 All Rights Reserved. www.americanidol.com\nCharitable donations are the sole responsibility of Ford, not American Idol® or related parties."));
		verifyTrue(selenium.isElementPresent("link=www.americanidol.com"));
		verifyTrue(selenium.isTextPresent("www.americanidol.com"));
		verifyTrue(selenium.isElementPresent("link=Official Rules"));
		verifyTrue(selenium.isTextPresent("Official Rules"));
		verifyTrue(selenium.isElementPresent("link=Privacy Statement"));
		verifyTrue(selenium.isTextPresent("Privacy Statement"));
		verifyTrue(selenium.isTextPresent("CA Privacy Statement"));
		verifyTrue(selenium.isElementPresent("link=CA Privacy Statement"));
	}

	@After
	public void tearDown() throws Exception {
		selenium.stop();
	}
}
